package org.col.dspace.tagger.model;

import org.dspace.content.Bitstream;

public class TagGeneratorFactory {
	
	
	public static TagGenerator getTagGenerator(Bitstream stream, String format){
		
		if("application/pdf".equalsIgnoreCase(format)){
			return new TagGeneratorPDF(stream);
		}
		if("text/plain".equalsIgnoreCase(format)){
			return new TagGeneratorText(stream);
		}
		else return null;
		
		
		
	}

}
